# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-lua
pkgver=0.0.19
pkgrel=1
pkgdesc="Lua grammar for tree-sitter"
url="https://github.com/MunifTanjim/tree-sitter-lua"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/MunifTanjim/tree-sitter-lua/archive/v$pkgver/tree-sitter-lua-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
886aa14a529c7221193811c0fde7ded0dd918b7b56d8a62ae6621148b3e34ee2e6b669b60b70866d0cb3718c5436679bfc2214c8d371df888ec333e5e00996a3  tree-sitter-lua-0.0.19.tar.gz
"
